#include "DxLib.h"
#include "../Game/Camera.h"
#include "../Framework/Input.h"

Camera::Camera()
	:Singleton(this){
	x = 0;
	y = 0;
}

Camera::~Camera(){

}

void Camera::Update(float delta){

	if (Input::GetInstance().IsKeyDown(KEY_INPUT_LEFT)){
		x-=5;
	}
	if (Input::GetInstance().IsKeyDown(KEY_INPUT_RIGHT)){
		x+=5;
	}
	if (Input::GetInstance().IsKeyDown(KEY_INPUT_UP)){
		y-=5;
	}
	if (Input::GetInstance().IsKeyDown(KEY_INPUT_DOWN)){
		y+=5;
	}
}

int Camera::GetX(){
	return x;
}

int Camera::GetY(){
	return y;
}
